package org.dce.screencapturer.components.ui;

import java.awt.Insets;

import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.plaf.metal.MetalButtonUI;

public class ActionButtonUI extends MetalButtonUI {

	@Override
	public void installUI(JComponent c) {
		super.installUI(c);
		JButton button = (JButton)c;
		button.setMargin(new Insets(0,0,0,0));
		button.setContentAreaFilled(false);
		button.setHideActionText(true);
		button.setBorderPainted(false);
		button.setRolloverEnabled(true);
		button.setFocusPainted(false);
	}

}
